package stylistcrm.core.services.order.enums;

public enum EnumPayWay {

	ONLINE_PAY("0","在线支付"),
	DELIVERY_PAY("1","货到付款");
	
	private String code;
	
	private String desc;
	
	private EnumPayWay(String code,String desc){
		this.code=code;
		this.desc=desc;
	}
	
	public String getCode(){
		return code;
	}
	
	public String getDesc(){
		return desc;
	}
	
	public static EnumPayWay getEnum(String code) {

        for (EnumPayWay enumValue : EnumPayWay.values()) {
            if (enumValue.getCode().equals(code))
                return enumValue;
        }

        return null;
    }
}
